@include('admin.header')
<style>
form{

	
}
label{
	line-height:40px;
}
label span{
	display: inline-block;
	width: 150px;
	text-align: right;
}
input[type="submit"]{
	position: absolute;
	right: 20px;
	bottom: 20px;
	margin-left: 20px;
	display: inline-block;
	text-align: right;
}




</style>
</head>
<body>
	<div class="wrap js-check-wrap">

		<form  method="post" class="js-ajax-tree js-category-add">
			 <div>
			    
				<td>冻结编号：{{$data->hisid}}</td>
				
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				
				<td>冻结钱包：{{$data->purseid}}</td>
				
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				
				<td>钱包类型：
					  @if($data->pursetype == 0)
			              None
			          @elseif($data->pursetype == 1)
			             收益账户
			          @elseif($data->pursetype == 2)
			             现金账户
			          @elseif($data->pursetype == 3)
			             积分账户
			          @elseif($data->pursetype == 4)
			             o2o收益账户
			          @elseif($data->pursetype == 96)
			             过账账户
			          @elseif($data->pursetype == 97)
			             授信账户
			          @elseif($data->pursetype == 98)
			             中央银行账户 
			          @else
			             统收益账户
			          @endif
				</td>
				<br/>
				
				<td>拥有者Id：{{$data->ownerid}}</td>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				
				<td>拥有者账号：{{$data->nodecode}}</td>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				
				<td>拥有者姓名：{{$data->nodename}}</td>
				<br/>
				<td>拥有者类型：
					  @if($data->ownertype == 0)
             		  	  None
			          @elseif($data->ownertype == 1)
			              用户账户
			          @elseif($data->ownertype == 2)
			              商家账户
			          @elseif($data->ownertype == 3)
			              企业账户
			          @else
			              系统账户
			          @endif
				</td>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				
				<td>货币类型：{{$data->currency_type}}</td>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				
				<td>冻结金额：{{$data->amount}}</td>
				<br/>
				
				<td>转账流水：{{$data->transferid}}</td>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				
				<td>处理状态：
					  @if($data->state == 0)
             		     冻结中
			          @else
			             已解冻
			          @endif
				</td>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				
				<td>创建时间：{{$data->createtime}}</td>
				<br/>
				
				<td>处理时间：{{$data->optime}}</td>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				
				<td>用户备注：{{$data->remarks}}</td>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<td>创建时间：{{$data->createtime}}</td>

				<br/>
			
				<td>操作人备注：<textarea name="opremarks" ></textarea></td>
				<input type="hidden" name="hisid" value="{{$hisid}}"/>
				<input type="submit" class="btn btn-primary" value="提交" />
				
			</div>
		</form>
	</div>
	<script type="text/javascript" src="/static/js/common.js"></script>
	<script type="text/javascript" src="/static/js/validate/validate.js"></script>
	<script type="text/javascript" src="/static/js/layer/layer.js"></script>
	<script type="text/javascript">
			$(function() {
			$(".js-category-add").validate({
				rules: {
				 	opremarks : {
		                required    : true,
		            },
					
				},
				messages: {
					opremarks: {
						required: "请输入操作员备注"
					}
				},
				submitHandler: function () {
					$.post("/wallet/{{$action}}",$('.js-category-add').serialize(), function (msg) {
						if (msg.status == 1) {
							layer.confirm(msg.info, {
								btn: ['确定']
							}, function(){
								@if($action == 'fundfreeze')
									window.location.href="{{asset('wallet/fundfreeze')}}";
								@else
									window.location.href="{{asset('wallet/fundfreeze')}}";
								@endif
							});
						} else {
							showMsg(msg.info);
						}
					}, 'json');
					return false;
				}
			});
		});
		/**
		 * layer提示
		 */
		function showMsg(msg){
			layer.alert(msg, {
				title: '提示',
				icon: 2,
			});
		}
	</script>
</body>
</html>